package Logcheck;

public class CheckConstant
{
    //设置用户名和密码的长度
    public static final int Min_username_len = 4;
    public static final int Max_username_len = 16;
    public static final int Min_userpasswd_len = 8;
    public static final int Max_userpasswd_len = 16;

    public static final int True = 0;   //表示数据合法
    public static final int False = 1;  //表示数据不合法

    //一些用户提示信息
    public static final String username_len_error = "用户名长度不合法";
    public static final String username_len_message = "用户名应为4~16字符";
    public static final String username_chat_error = "用户名字符类型不合法";
    public static final String username_chat_message = "用户名字符为数字,字母,点(.)和下划线(_)的一种或多种组合";
    public static final String username_exist_error = "用户名不合法";
    public static final String username_exist_message = "用户名已被使用";
    public static final String username_first_error = "用户名首字符不合法";
    public static final String username_first_message = "用户名首字符应为英文字母";
    public static final String username_legal = "用户名合法";

    public static final String userpasswd_len_error = "密码长度不合法";
    public static final String userpasswd_len_message = "密码应为8~16字符";
    public static final String userpasswd_chat_error = "密码字符类型不合法";
    public static final String userpasswd_chat_message = "密码字符为数字,字母,点(.)和下划线(_)的一种或多种组合";
    public static final String userpasswd_legal = "密码合法";

    public static final String log_failed = "用户名或密码错误";
    public static final String log_successed = "登陆成功";

    public static final String singup_succssed = "注册成功";

    //用户状态
    public static final String offline = "offline";
    public static final String online = "online";

    //数据库中的表名
    public static final String usertable = "user_log_inf";

}
